package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Role;
import com.itheima.pojo.User;

import java.util.List;

public interface UserMessageService {
    PageResult  findUserMessage(QueryPageBean queryPageBean);

    List<Role> findRoleAll();

    void addUserAndRoles(User user, Integer[] checkItem);

    User findUser(Integer userId);

    List<Integer> findAndRole(Integer userId);

    void updateUserAndRole(User user, Integer[] roleId);

    void deleteUserAndRole(Integer userId);

    long findUsername(String username);
}
